/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package service;

import com.superenvios.model.Persona;
import javax.ws.rs.Consumes;
import javax.ws.rs.POST;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;

/**
 *
 * @author beto86
 */
@Path("user")
public class UserService{

    @POST
    @Consumes({"application/json"})
    @Produces({"application/json"})
    public Persona login(LoginToken token) {
        
        Persona user = new Persona();
        user.setId(Long.MIN_VALUE);
        user.setNombre(token.getUser());
        user.setTelefono(Long.MIN_VALUE);
        
        return user;
    }
    
}
